home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Online
/
TruncateMail
/
TruncateFolder.yam
< prev
next >
Wrap
Text File
|
2001-07-15
|
1KB
|
32 lines
/********************************************
* TruncateFolder arexx script v1.2 *
* Author: Marek "March" Szyprowski *
* E-mail: march@staszic.waw.pl *
* Date: 15.07.2001 *
* * * * * * * * * * * ** * * * * * * * * * *
* Requiments: Yam 2.3+, TruncateMail v3.0+ *
********************************************
* History: *
* 1.2 - fixed script to use smather way of *
* getting the folder's path *
* (thanks to Rafal Mazurkiewicz) *
* 1.1 - fixed problems with YAM 2.3+, does *
* not work with older version of YAM *
* 1.0 - first, initial realase *
********************************************/
OPTIONS RESULTS
ADDRESS YAM MailInfo STEM mail.
mpath = mail.filename
dirpath = strip(left(mpath, lastpos('/', mpath) ),'T', '/')
text = "Processing mail files in dir '"||dirpath||"'..."
ADDRESS YAM 'APPBUSY "'||text||'"'
ADDRESS COMMAND 'truncatemail '||dirpath||'/0#? CHECKDATE ONLYHEADERS'
ADDRESS YAM APPNOBUSY